<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function showL(){
				//location 的三个属性
				alert("host:"+location.host);
				alert("hostname:"+location.hostname);
				alert("href:"+location.href);
			}
			function repNew(){
				window.location.replace("js3.html");
			}
		</script>
	</head>
	<body>
		<a href="doc.html">doc页面</a>
		<a href="javascript:void(0)" onclick="alert(33)">链接执行js方法</a>
		<a href="js3.html">去js3</a>
		<input type="button" value="显示location属性" onclick="showL()"/>
		<input type="button" value="刷新" onclick="window.location.reload()"/>
		<input type="button" value="替换" onclick="repNew()"/>
	</body>
</html>
